package edu.sctu.zhoumengxue.day201505.day20150515;

/**
 * Created by user12 on 2015/5/15.
 */
public class TextTwo extends TextOne{

    TextThree textThree;

    public Student[] student;
    public TextTwo(Student[] student) {
        super(student);
        this.student = student;
    }

    @Override
    public void putAll() {
        for(int i=0;i<10;i++){
            if(student[i].getAge()>60){

                System.out.println(student[i].getAge()+":"+student[i].getGrade()+":"+student[i].getNumber()+":"+student[i].getName()+":"+student[i].getSex());
            }
            System.out.println(student[i].getName()+":"+student[i].getGrade());

        }

        TextFour textFour = new TextFour(new TextThree() {
            @Override
            public void getString(int age) {
                for (int i = 0; i < 10; i++) {


                if(student[i].getAge() > age){
                    System.out.println(student[i].getName()+":"+student[i].getSex()+":"+student[i].getAge());

                }
                }

            }
        });

    }






}
